package com.example.demo.design.decorator.solution;

/**
 * @Author: liull
 * @Description: 滚动条装饰器
 * @Date: Created in 15:35 2020/12/24
 * @Modified By:
 */
public class BlackBorderDecorator extends ComponentDecorator {
    public BlackBorderDecorator(Component component) {
        super(component);
    }

    @Override
    public void display() {
        setBlackBorder();
        super.display();
    }

    public void setBlackBorder() {
        System.out.println("为构件增加黑色边框！");
    }
}
